<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/10/19
 * Time: 11:42
 */

use Biz\service\activity\GroupBuy as sGroupBuy;

class GroupBuyAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $groupBuyId = $this->getRequest()->getQuery('group_buy_id', 2);

        $info = sGroupBuy::getInfoByGroupBuyId($groupBuyId);
        $this->setSuccess($info);
    }
}